const _ = require('lodash');

const array = ['jack', 'tom', 'luck', 'kate'];

console.log('first:', _.first(array))

console.log('last:', _.last(array))

console.log('toUpper:', _.toUpper(_.first(array)))

console.log('reverse:', _.reverse(array));

console.log('each:', _.each(array, (item, index) => {
  console.log(item, index)
}))